Component({
  properties: {
    placeholderText: {
      type: String,
      value: ''
    },
    deleteFlag: {
      type: Boolean,
      value: true
    },
    keyword: {
      type: String,
      value: ''
    },
    disabled: {
      type: Boolean,
      value: false
    }
  },
  methods: {
    //确定搜索
    searchSubmit: function(e) {
      this.triggerEvent("searchSubmit", e);
    },
    //输入搜索
    searchInput: function(e) {
      this.triggerEvent("searchInput", e);
    },
    //清空输入内容
    clearInput: function() {
      this.triggerEvent("clearInput");
    }
  }
})